<%--
    Document   : popuptemplate
    Created on : Jun 4, 2012, 2:47:19 PM
    Author     : ems
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>

        <script type="text/javascript" language="javascript" src="../scripts/jQuery/datetimepicker.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        if (typeof jQuery == 'undefined') {
            // window.location.href="accessdenied.jsp";
        } 
        $j = jQuery.noConflict();
        $j(document).ready(function(){

         

        });
    </script>
    <style type="text/css">
        .divbutton{
            float: right;
            display: none;
        }


    </style>
    <f:view>
        <h:form>

            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

            <div class="popup" style="height:150px; width:350px">
                <div class="popup-header">
                    <div class="title"><h:outputText value="Thông báo"/></div>
                </div>
                <div class="popup-content">
                    <div class="main_content" style="padding:20px 84px">



                        <font style="font-weight:bold;margin-left: 0px;">
                        <h:outputText  value="Bạn có chắc chắn không?"/>
                        </font>

                        <h:inputHidden id="FS450" value="#{SPDetailBean.PS450}" />
                         <h:inputHidden id="FS400" value="#{SPDetailBean.FS400}" />
                         <h:inputHidden id="FV050" value="#{SPDetailBean.FV050}" />
                        <h:inputHidden id="VV052" value="#{SPDetailBean.vv052}" />
                        


                    </div>
                </div>
                <div class="popup-footer">

                    <div class="buttonsave" style="float: right;margin-right: 87px;" onclick="parent.jQuery.fancybox.close(); "  ><span style="margin-right: 25px;"><h:outputText value="NO"/></span></div>
                    <div class="divbutton" style="display:<h:outputText rendered="#{SPDetailBean.vv052 == 'ON'}" value="block"/>">
                        <a4j:commandButton  action="#{SPDetailBean.updateV050forS400ON}" styleClass="buttonsave" value="YES">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display: <h:outputText rendered="#{SPDetailBean.vv052 == 'OFF'}" value="block"/>">
                        <a4j:commandButton  action="#{SPDetailBean.updateV050forS400OFF}" styleClass="buttonsave" value="YES">

                        </a4j:commandButton>
                    </div>
                         <div class="divbutton" style="display:<h:outputText rendered="#{SPDetailBean.vv052 == 'ON1'}" value="block"/>">
                             <a4j:commandButton  action="#{SPDetailBean.updateV050forS400ONCOPY}" styleClass="buttonsave" value="YES">

                        </a4j:commandButton>
                    </div>
                    <div class="divbutton" style="display: <h:outputText rendered="#{SPDetailBean.vv052 == 'OFF1'}" value="block"/>">
                        <a4j:commandButton  action="#{SPDetailBean.updateV050forS400OFFCOPY}" styleClass="buttonsave" value="YES">

                        </a4j:commandButton>
                    </div>
                        <div class="divbutton" style="display: <h:outputText rendered="#{SPDetailBean.vv052 == 'UPDATE'}" value="block"/>">
                            <a4j:commandButton  action="#{SPDetailBean.updateV450UPDATE}" styleClass="buttonsave" value="YES">

                        </a4j:commandButton>
                    </div>

                </div>



            </div>
        </div>

    </h:form>
</f:view>
</html>
<script type="text/javascript">
    $j(document).ready(function(){
        yhight = ($j('.popup').height()-90)+"px" ;
        $j('.main_content').css('height',yhight );
        $j('.popup-content').css('height',yhight );
    });
</script>